/*
 * XML Type:  OpenOrderBuyDebt
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.OpenOrderBuyDebt
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML OpenOrderBuyDebt(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class OpenOrderBuyDebtImpl extends net.ofx.types.x2003.x04.impl.AbstractOpenOrderImpl implements net.ofx.types.x2003.x04.OpenOrderBuyDebt
{
    
    public OpenOrderBuyDebtImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName AUCTION$0 = 
        new javax.xml.namespace.QName("", "AUCTION");
    private static final javax.xml.namespace.QName DTAUCTION$2 = 
        new javax.xml.namespace.QName("", "DTAUCTION");
    
    
    /**
     * Gets the "AUCTION" element
     */
    public net.ofx.types.x2003.x04.BooleanType.Enum getAUCTION()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(AUCTION$0, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.BooleanType.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "AUCTION" element
     */
    public net.ofx.types.x2003.x04.BooleanType xgetAUCTION()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(AUCTION$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "AUCTION" element
     */
    public void setAUCTION(net.ofx.types.x2003.x04.BooleanType.Enum auction)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(AUCTION$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(AUCTION$0);
            }
            target.setEnumValue(auction);
        }
    }
    
    /**
     * Sets (as xml) the "AUCTION" element
     */
    public void xsetAUCTION(net.ofx.types.x2003.x04.BooleanType auction)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(AUCTION$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BooleanType)get_store().add_element_user(AUCTION$0);
            }
            target.set(auction);
        }
    }
    
    /**
     * Gets the "DTAUCTION" element
     */
    public java.lang.String getDTAUCTION()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTAUCTION$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "DTAUCTION" element
     */
    public net.ofx.types.x2003.x04.DateTimeType xgetDTAUCTION()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTAUCTION$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "DTAUCTION" element
     */
    public boolean isSetDTAUCTION()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DTAUCTION$2) != 0;
        }
    }
    
    /**
     * Sets the "DTAUCTION" element
     */
    public void setDTAUCTION(java.lang.String dtauction)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTAUCTION$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DTAUCTION$2);
            }
            target.setStringValue(dtauction);
        }
    }
    
    /**
     * Sets (as xml) the "DTAUCTION" element
     */
    public void xsetDTAUCTION(net.ofx.types.x2003.x04.DateTimeType dtauction)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTAUCTION$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.DateTimeType)get_store().add_element_user(DTAUCTION$2);
            }
            target.set(dtauction);
        }
    }
    
    /**
     * Unsets the "DTAUCTION" element
     */
    public void unsetDTAUCTION()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DTAUCTION$2, 0);
        }
    }
}
